def myfun(obj):
    if type(obj) == str:
        if ' ' in obj:
            return True


    elif type(obj) == list:
        for i in obj:
            if ' ' in i:
                return True

    elif type(obj) == tuple:
        pass

    return False

print(myfun(['asdkji','njbj']))